package com.diaosidadui.duotai01;

public class AnimalDemo {
    public static void main(String[] args) {
/*        AnimalOperator ao = new AnimalOperator();

        Animal c = new Cat();
        ao.useAnimal(c);

        Animal d = new Dog();
        ao.useAnimal(d);*/

        Animal c =new Cat();
        Animal d = new Dog();
        c.eat();
        d.eat();
        Cat cc = (Cat)c;
        cc.catMethod();


    }


}
